package main

import (
	"fmt"
)

func sum[T float32 | float64 | int | string](a T, b T) T {
	return a + b
}

func main1() {
	fmt.Println(sum[int](1, 2))
	fmt.Println(sum[string]("a", "b"))
}
